import request from '../util/axios'
import { serialize } from '../util/util'

// 已销毁查询
export const requestDestroyed = (data, query) => {
  return request({
    url: '/yuyi-appraisal-compilation-boot/test/demo9/queryList1' + serialize(query),
    method: 'post',
    data
  })
}

// 不销毁查询
export const requestDestroyedNo = (data, query) => {
  return request({
    url: '/yuyi-appraisal-compilation-boot/test/demo9/queryListbxh' + serialize(query),
    method: 'post',
    data
  })
}

// 待销毁查询
export const requestWaitDestroy = (data, query) => {
  return request({
    url: '/yuyi-appraisal-compilation-boot/test/demo9/queryList' + serialize(query),
    method: 'post',
    data
  })
}

// 销毁清册
export const requestDestroyInventory = (query) => {
  return request({
    url: '/yuyi-appraisal-compilation-boot/test/demo9/exportuser' + serialize(query),
    method: 'post',
    responseType: 'blob'
  })
}

// 销毁鉴定 ---   批量鉴定
export const requestDestroyBatch = (data, query) => {
  return request({
    url: '/yuyi-appraisal-compilation-boot/test/demo9/replaceBatch' + serialize(query),
    method: 'post',
    data
  })
}

// 销毁鉴定 ---   获取查询条件
export const requestQuery = (query) => {
  return request({
    url: '/yuyi-appraisal-compilation-boot/test/demo9/chaxun' + serialize(query),
    method: 'post'
  })
}

// 开放鉴定 ---  划控
export const requestZonedControl = (data, query) => {
  return request({
    url: '/yuyi-appraisal-compilation-boot/test/demo10/queryList2' + serialize(query),
    method: 'post',
    data
  })
}

// 开放鉴定 ---  已开放
export const requestOpen = (data, query) => {
  return request({
    url: '/yuyi-appraisal-compilation-boot/test/demo10/queryList' + serialize(query),
    method: 'post',
    data
  })
}
// 开放鉴定 ---  待开放
export const requestWaitOpen = (data, query) => {
  return request({
    url: '/yuyi-appraisal-compilation-boot/test/demo10/queryList1' + serialize(query),
    method: 'post',
    data
  })
}

// 开放鉴定 ---  开放清册
export const requestOpenInventory = (query) => {
  return request({
    url: '/yuyi-appraisal-compilation-boot/test/demo10/exportuser' + serialize(query),
    responseType: 'blob',
    method: 'post'
  })
}
// 销毁鉴定 ---   批量鉴定
export const requestOpenBatch = (data, query) => {
  return request({
    url: '/yuyi-appraisal-compilation-boot/test/demo10/replaceBatch' + serialize(query),
    method: 'post',
    data
  })
}

// 解密鉴定 ---  已解密
export const requestDecryptOver = (data, query) => {
  return request({
    url: '/yuyi-appraisal-compilation-boot/test/demo11/queryList1' + serialize(query),
    method: 'post',
    data
  })
}
// 解密鉴定 ---  列表
export const requestDecrypt = (data, query) => {
  return request({
    url: '/yuyi-appraisal-compilation-boot/test/demo11/queryList' + serialize(query),
    method: 'post',
    data
  })
}
// 解密鉴定 ---  解密清册
export const requestDecryptInventory = (query) => {
  return request({
    url: '/yuyi-appraisal-compilation-boot/test/demo11/exportuser' + serialize(query),
    method: 'post',
    responseType: 'blob'
  })
}
// 解密鉴定 ---   批量鉴定
export const requestDecryptBatch = (data, query) => {
  return request({
    url: '/yuyi-appraisal-compilation-boot/test/demo11/replaceBatch' + serialize(query),
    method: 'post',
    data
  })
}
